Skip to content

Commonutils: chown: cannot access '/home/vscode/.zshrc': No such file or directory - #662

Merged
Samruddhi Khandale (samruddhikhandale) merged 4 commits into
devcontainers:mainfrom
naturedamends:naturedamends-patch-1
Aug 25, 2023
Merged

Commonutils: chown: cannot access '/home/vscode/.zshrc': No such file or directory#662
Samruddhi Khandale (samruddhikhandale) merged 4 commits into
devcontainers:mainfrom
naturedamends:naturedamends-patch-1

Conversation

@naturedamends

@naturedamends naturedamends commented Aug 19, 2023

Copy link
Copy Markdown
Contributor
23.12 Processing triggers for libc-bin (2.36-9+deb12u1) ...

23.16 Reading package lists...
23.84 Building dependency tree...
23.99 Reading state information...
24.03 Calculating upgrade...
24.29 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
24.30 Reading package lists...
24.94 Building dependency tree...
25.12 Reading state information...
25.40 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
25.41 Generating locales (th
[2023-08-19T23:03:03.970Z] is might take a while)...
25.42   en_US.UTF-8... done
27.10 Generation complete.
27.70 Cloning into '/home/vscode/.oh-my-zsh'...
29.61 chown: cannot access '/home/vscode/.zshrc': No such file or directory
29.61 ERROR: Feature "Common Utilities" (ghcr.io/devcontainers/features/common-utils) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/common-utils for help troubleshooting this error.
------
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
	"name": "Go",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
	"image": "golang"
	"remoteUser": "vscode",
	"features": {
		"ghcr.io/devcontainers/features/common-utils:2": {
			"installZsh": true,
			"configureZshAsDefaultShell": true,
			"installOhMyZshConfig": false,
			"installOhMyZsh": true,
			"upgradePackages": true,
			"username": "vscode",
			"userUid": "1001",
			"userGid": "1001"
		},
		"ghcr.io/devcontainers/features/github-cli:1": {}
	},
}

@naturedamends
naturedamends requested a review from a team as a code owner August 19, 2023 23:08

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! ❇️

Looks like this bug wasn't caught by the existing tests. naturedamends can you help add a test/scenario for the failing dev config? Thanks!

@naturedamends

Copy link
Copy Markdown
Contributor Author

Thanks for the fix! ❇️

Looks like this bug wasn't caught by the existing tests. naturedamends can you help add a test/scenario for the failing dev config? Thanks!

#653 also satisfies those tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ✨

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) merged commit 0668db5 into devcontainers:main Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants